package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {

    /**
     * 统计指定时间区间内的营业额数据
     */
    TurnoverReportVO getTurnover(LocalDate begin, LocalDate end);
    /*
     * 用户统计
     * */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);
    /*
     * 订单统计
     * */
    OrderReportVO getOrderStatistics(LocalDate begin, LocalDate end);
    /*
     * 销量排名统计
     * */
    SalesTop10ReportVO gettop10Statistics(LocalDate begin, LocalDate end);

    void exportXlsx(HttpServletResponse response);
}
